<?php
/**
 * @author     Thibaut Cromphaut, Gaïtano Boeraeve, Matthias Mercy
 * @copyright  Copyright (c) 2011 memorygame
 */
class Application_Form_EditWorld extends Zend_Form
{

    public function init()
    {
        $this->addElement('hidden', 'world_id', array(
            'label'      => '',
        ));

        $this->addElement('text', 'world_name', array(
            'label'      => 'World:',
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));
        
        $this->addElement('file', 'world_pictureUrl', array(
            'label'      => 'Picture:',
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));
        
        $this->addElement('textarea', 'world_description', array(
            'label'      => 'Description:',
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));

        $this->addElement('submit', 'edit', array(
            'label'      => 'Edit',
        ));

        /*$this->addElement('hash', 'no_csrf_registration', array(
            'salt' => 'unique',
        ));*/
    }
}



